//package com.sc.nft.dao;
//
//import cn.hutool.core.date.DateTime;
//import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
//import com.sc.nft.entity.vo.AdminLogoutUserPageVO;
//import lombok.extern.slf4j.Slf4j;
//import com.sc.nft.entity.LogOffRecord;
//import com.sc.nft.mapper.LogOffRecordMapper;
//import  com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//import org.springframework.stereotype.Repository;
//
///**
// * 注销记录表(sc_log_off_record)数据DAO
// *
// * @author zxy
// * @since 2023-10-18 00:42:40
// * @description
// */
//@Slf4j
//@Repository
//public class LogOffRecordDao extends ServiceImpl<LogOffRecordMapper, LogOffRecord> {
//
//    public boolean logOffKeyExists(String key){
//        LambdaQueryWrapper<LogOffRecord> wrapper = new LambdaQueryWrapper<>();
//        wrapper.eq(LogOffRecord::getLogOffKey,key);
//        wrapper.gt(LogOffRecord::getReleaseTime, DateTime.now());
//        return count(wrapper)>0;
//    }
//
//    public Page<AdminLogoutUserPageVO> logoutUserPage(String userTel, Integer pageNo, Integer pageSize) {
//        return baseMapper.logoutUserPage(new Page<>(pageNo, pageSize), userTel);
//    }
//
//    public Boolean checkForExistenceByUserId(Long userId) {
//        LambdaQueryWrapper<LogOffRecord> wrapper = new LambdaQueryWrapper<>();
//        wrapper.eq(LogOffRecord::getUserId,userId);
//        return count(wrapper)>0;
//    }
//
//    public boolean removeByUserID(Long userId) {
//        LambdaQueryWrapper<LogOffRecord> wrapper = new LambdaQueryWrapper<>();
//        wrapper.eq(LogOffRecord::getUserId,userId);
//        return remove(wrapper);
//    }
//}